﻿using SharedKernel.Domain;
using System.ComponentModel.DataAnnotations;

namespace UserService.Domain.ValueObjects
{
    /// <summary>
    /// 用户登录值对象
    /// </summary>
    public class UserLoginValueObject
    {
        [Display(Name = "手机号")]
        [Required(ErrorMessage = "请输入{0}")]
        [Phone(ErrorMessage = "{0}格式有误")]
        public required string Phone { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "请输入{0}")]
        public required string Password { get; set; }
    }
}
